| title: “A Sample R Markdown Template” |
| author: Vivek Patil |
| email: patil@jepson.gonzaga.edu |
| date: 9/11/2014 |
| abstract: The objective of this document’s template is to demonstrate some basics of the combination of R and markdown and how they can be knitted together using the knitr package (via the RStudio IDE) to produce beautiful docs/reports. |
| output: |
| pdf_document: |
| highlight: tango |
| fig_width: 7 |
| fig_height: 6 |
| fig_caption: true |
| fig_crop: true |
| toc: true |
| toc_depth: 3 |
| number_sections: true |
The options mentioned in the header of this Rmarkdown file (with extensions of .Rmd) above for a pdf document can be modified as well as supplemented by options for other document formats.(Please see the “Output Options” section of RStudio’s reference site at http://rmarkdown.rstudio.com/ for more information.) Did you notice that this thing was in bold and that the previous thing was a web link?
Material for this document has been heavily borrowed from several documents.(Notice how a numbered list is being created below.)
As previously mentioned, the objectives of this document are two fold.
The header used above can be created using a different approach, using a single hashtag (wasn’t that in italics?) to the left of the title of the header.
You can insert images in the document as well. For instance, if you have an image of a real apple in your working directory, then you can insert it in the document in the following manner.
| Header | Header | Right |
|---|---|---|
| Cell | Cell | $10 |
| Cell | Cell | $20 |
Bottled water : $ 1.25 : $ 1.55 (Large)
Milk Pop : $ 1.75